package com.tencreat.domain.mall.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 消息推送
 * @author zixin
 */
@Data
public class MallMessageInformPushDTO {

    @ApiModelProperty("标题")
    @NotNull(message = "标题不能为空")
    private String title;

    @ApiModelProperty("内容")
    @NotNull(message = "内容不能为空")
    private String content;

    @ApiModelProperty("消息类型,0|系统消息,1|短信消息")
    @NotNull(message = "消息类型不能为空")
    private Integer type;

    @ApiModelProperty("推送目标,0|会员用户,1|全部用户,2|指定用户")
    @NotNull(message = "推送目标不能为空")
    private Integer target;

    @ApiModelProperty("指定用户")
    private String userList;

}
